﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace ExamSharedClasses
{
    [Serializable()]
    public class QuestionModule
    {
        public const string TABLENAME = "question_module";
        public const string QUESTION_ID = "QuestionId";
        public const string MODULE_ID = "ModuleId";

        public Question Question { get; set; }
        public Module Module { get; set; }

        public QuestionModule()
        {
            Question = new Question();
            Module = new Module();
        }
        public override string ToString() {
            StringBuilder sb = new StringBuilder( "QuestionModule: " );
            if ( Question != null )
                sb.Append( '\t' + Question.ToString() );
            if ( Module != null )
                sb.Append( '\t' + Module.ToString() );
            return sb.ToString();
        }
    }
}
